from django.urls import re_path

from app import consumer
from chat import consumers


websocket_urlpatterns = [
    # 示例 url ： xxxxx/room/x1/
    re_path(r'ws/chat/(?P<user_id>\w+)/$', consumer.ChatConsumer.as_asgi()),
    re_path(r'ws/monitor/$', consumer.ServerMonitorConsumer.as_asgi()),
    re_path(r'ws/chat/(?P<user_uuid>\w+)/$', consumers.ChatConsumer.as_asgi()),
]